package com.ruoyi.clothing.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 【请填写功能名称】对象 user
 *
 * @author weh
 * @date 2024-01-03
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** $column.columnComment */
    @Excel(name = "用户姓名")
    private String name;

    /** $column.columnComment */
    @Excel(name = "用户昵称")
    private String username;

    /** $column.columnComment */
    @Excel(name = "用户密码")
    private String password;

    /** $column.columnComment */
    @Excel(name = "用户性别")
    private String sex;

    /** $column.columnComment */
    @Excel(name = "用户头像")
    private String headshot;

    /** $column.columnComment */
    @Excel(name = "用户联系方式")
    private String tel;

    /**
     * 此处属性为zhugang单独加上的token
     * @param id
     */
    private String token;

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setPassword(String password)
    {
        this.password = password;
    }

    public String getPassword()
    {
        return password;
    }
    public void setSex(String sex)
    {
        this.sex = sex;
    }

    public String getSex()
    {
        return sex;
    }
    public void setHeadshot(String headshot)
    {
        this.headshot = headshot;
    }

    public String getHeadshot()
    {
        return headshot;
    }
    public void setTel(String tel)
    {
        this.tel = tel;
    }

    public String getTel()
    {
        return tel;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("name", getName())
                .append("username", getUsername())
                .append("password", getPassword())
                .append("token",getToken())
                .append("sex", getSex())
                .append("headshot", getHeadshot())
                .append("tel", getTel())
                .toString();
    }
}
